<?php 
	
	$novoNome = explode("/", $_GET['nome']);
	
	header('Content-Description: File Transfer');
	header('Content-Disposition: attachment; filename="'.$novoNome[1].'"');
	header("Content-Description: PHP Generated Data"); 
	header('Content-Type: text/php');
	header('Content-Transfer-Encoding: binary');
	header('Content-Length: ' . filesize($_GET['nome']));
	header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
	header('Pragma: public');
	header('Expires: 0');

	readfile($_GET['nome']);
?>